import { BaseWindow } from "../../../../component/window/BaseWindow";
import { ILayer } from "../../../../mvc/interfaces/ILayer";
import { Language } from "../../../../../extend/language/Language";
import { Dispatcher } from "../../../../mvc/core/Dispatcher";
import { DataEvent } from "../../../events/DataEvent";
import { EventName } from "../../../mvc/EventName";
import { ShopRule } from "../../../rules/ShopRule";
import { RunePreviewWindow } from "./RunePreviewWindow";
import { ItemData } from "../../../resource/info/ItemData";
import { RuneUtil } from "./RuneUtil";
import { TileList } from "../../../../../fl/controls/TileList";
import { Cache } from "../../../cache/Cache";
import { DataProvider } from "../../../../../fl/data/DataProvider";
import { ItemsUtil } from "../../shortcuts/item/ItemsUtil";
import { ERuneType } from "../../../../../Message/Public/ERuneType";
import { EPlayerItemPosType } from "../../../../../Message/Public/EPlayerItemPosType";
import { Global } from "../../../../../com/gengine/global/Global";
import { AttriAddEffect } from "../../effect/AttriAddEffect";
import { GTextFormat } from "../../../../common/GTextFormat";
import { TweenLite } from "../../../../../com/greensock/TweenLite";
import { MsgManager } from "../../../manager/MsgManager";
import { TodayNotTipUtil } from "../../../../common/TodayNotTipUtil";
import { TodayNoTipsConst } from "../../../../component/gconst/TodayNoTipsConst";
import { Alert } from "../../../../../com/mui/controls/Alert";
import { EActiveType } from "../../../../../Message/Public/EActiveType";
import { EffectManager } from "../../../manager/EffectManager";
import { FilterConst } from "../../../../component/gconst/FilterConst";
import { ObjCreate } from "../../common/ObjCreate";
import { GlobalStyle } from "../../../../common/global/GlobalStyle";
import { FontUtil } from "../../../../common/font/FontUtil";
import { RuneFeedMaterialCell } from "./cell/RuneFeedMaterialCell";
import { SkillRuneEvent } from "./SkillRuneEvent";
import { ImagesConst } from "../../../resource/ImagesConst";
import { BaseItem } from "../../common/BaseItem";
import { RuneCellRenderer } from "./cell/RuneCellRenderer";
import { LoaderHelp } from "../../../../common/display/LoaderHelp";
import { ResFileConst } from "../../../resource/ResFileConst";
import { PetMingMsgRollTips } from "../../pet/ming/PetMingMsgRollTips";
import { RuneFeedData } from "./data/RuneFeedData";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { GCheckBox } from "../../../../../com/mui/controls/GCheckBox";
import { GButton } from "../../../../../com/mui/controls/GButton";
import { GTabBar } from "../../../../../com/mui/controls/GTabBar";
import { GTileList } from "../../../../../com/mui/controls/GTileList";
import { GLabel } from "../../../../../com/mui/controls/GLabel";
type int = number;
//class RuneFeedWindow
    
    export  class RuneFeedWindow extends BaseWindow
    {
        constructor(arg1: ILayer=null)
        {
            this._tabBarData = [{"label": Language.getString(44013), "name":"runePack"}, {"label": Language.getString(40028), "name":"backPack"}];
            super(arg1);
            setSize(520, 464);
            title = Language.getString(44014);
            titleHeight = 26;
            this.addEventListener(flash.events.Event.ADDED_TO_STAGE, this.onAddToStage);
            return;
        }

        /* internal  */onClickBuyRuneHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.ShopMallShowToTab, ShopRule.ShopMallRune));
            return;
        }

        /* internal  */onPreviewClick(arg1: Object /* flash.events.MouseEvent */): void
        {
            if (this._selectItemData) 
            {
                this.runePreviewWindow.show();
                this.runePreviewWindow.relatedItemData = this._selectItemData;
            }
            return;
        }

        /* internal  */get runePreviewWindow(): RunePreviewWindow
        {
            if (!this._runePreviewWindow) 
            {
                this._runePreviewWindow = new RunePreviewWindow();
            }
            return this._runePreviewWindow;
        }

        /* internal  */onBackPackSelectChange(arg1: Object /* flash.events.Event */): void
        {
            this.updateSelectItem(true);
            return;
        }

        /* internal  */onTabBarPackChange(arg1: Object /* flash.events.Event */): void
        {
            if (this._tabBarPack.selectedIndex != 0) 
            {
                this._tileListRunePack.visible = false;
                this._tileListBackPack.visible = true;
            }
            else 
            {
                this._tileListRunePack.visible = true;
                this._tileListBackPack.visible = false;
            }
            this.updateSelectItem();
            return;
        }

        /* internal  */updateSelectItem(arg1: Boolean=false): void
        {
            var loc1=0;
            if (this._tabBarPack.selectedIndex != 0) 
            {
                if (this._tileListBackPack.dataProvider.length > 0) 
                {
                    if (this._tileListBackPack.selectedIndex == -1) 
                    {
                        this._tileListBackPack.selectedIndex = 0;
                    }
                }
                else 
                {
                    this._tileListBackPack.selectedIndex = -1;
                }
                if (!arg1 && this._selectItemData) 
                {
                    loc1 = this.getOldItemIndex(this._tileListBackPack);
                    if (loc1 >= 0) 
                    {
                        this._tileListBackPack.selectedIndex = loc1;
                    }
                }
                this._selectItemData = this._tileListBackPack.selectedItem as ItemData;
            }
            else 
            {
                if (this._tileListRunePack.dataProvider.length > 0) 
                {
                    if (this._tileListRunePack.selectedIndex == -1) 
                    {
                        this._tileListRunePack.selectedIndex = 0;
                    }
                }
                else 
                {
                    this._tileListRunePack.selectedIndex = -1;
                }
                if (!arg1 && this._selectItemData) 
                {
                    loc1 = this.getOldItemIndex(this._tileListRunePack);
                    if (loc1 >= 0) 
                    {
                        this._tileListRunePack.selectedIndex = loc1;
                    }
                }
                this._selectItemData = this._tileListRunePack.selectedItem as ItemData;
            }
            this.updateSelectedItemView();
            return;
        }

        /* internal  */onRunePackSelectChange(arg1: Object /* flash.events.Event */): void
        {
            this.updateSelectItem(true);
            return;
        }

        /* internal  */updateSelectedItemView(): void
        {
            var loc1=0;
            var loc2=0;
            var loc3=0;
            if (this._selectItemData) 
            {
                this._selectItem.itemData = this._selectItemData;
                this._selectItemName.text = this._selectItemData.name;
                this._selectItemLevel.htmlText = RuneUtil.getRuneItemLevelName(this._selectItemData);
                loc1 = RuneUtil.getRuneItemNowGrow(this._selectItemData);
                loc2 = RuneUtil.getRuneUpdateNeedGrow(this._selectItemData.itemCode);
                loc3 = this.getGrowPer(loc1, loc2);
                this._tfFeedNum.text = loc1 + "/" + loc2;
                this._tfFeedPer.text = loc3 + "%";
                this._bmpFeed.bitmapData = this.getGrowPerBmd(loc3);
                this._bmpFeed.y = 71 + 118 - this._bmpFeed.bitmapData.height;
            }
            else 
            {
                this._selectItem.itemData = null;
                this._selectItemName.text = "";
                this._selectItemLevel.htmlText = "";
                this._tfFeedNum.text = "0/0";
                this._tfFeedPer.text = "0%";
                this._bmpFeed.bitmapData = new Object /* flash.display.BitmapData */(10, 10, true, 16777215);
                this._bmpFeed.y = 71 + 118 - this._bmpFeed.bitmapData.height;
            }
            this._btnPreview.visible = !(this._selectItemData == null);
            return;
        }

        /* internal  */getOldItemIndex(arg1: TileList): int
        {
            var loc3=null;
            if (!this._selectItemData) 
            {
                return -1;
            }
            var loc1=arg1.dataProvider;
            var loc2=0;
            while (loc2 < loc1.length) 
            {
                if ((loc3 = loc1.getItemAt(loc2) as ItemData).uid == this._selectItemData.uid) 
                {
                    return loc2;
                }
                ++loc2;
            }
            return -1;
        }

        /* internal  */getGrowPer(arg1: int, arg2: int): int
        {
            if (arg2 == 0) 
            {
                return 0;
            }
            return Math.floor(arg1 * 100 / arg2);
        }

        /* internal  */getGrowPerBmd(arg1: int): Object /* flash.display.BitmapData */
        {
            if (!this._bmpdFeedBase) 
            {
                return new Object /* flash.display.BitmapData */(10, 10, true, 16777215);
            }
            if (arg1 > 100) 
            {
                arg1 = 100;
            }
            var loc1=arg1 * this._bmpdFeedBase.height / 100;
            if (loc1 <= 0) 
            {
                return new Object /* flash.display.BitmapData */(10, 10, true, 16777215);
            }
            var loc2=new Object /* flash.display.BitmapData */(this._bmpdFeedBase.width, loc1, true, 16777215);
            loc2.draw(this._bmpdFeedBase, new Object /* flash.geom.Matrix */(1, 0, 0, 1, 0, loc1 - this._bmpdFeedBase.height), null, null, new Object /* flash.geom.Rectangle */(0, 0, this._bmpdFeedBase.width, loc1));
            return loc2;
        }

        public updateBackPackData(): void
        {
            var loc1=Cache.instance.pack.backPackCache.getItemsByJudge(this.isCanFeedRune);
            this._tileListBackPack.dataProvider = new DataProvider(loc1);
            if (this._tabBarPack.selectedIndex == 1) 
            {
                this.updateSelectItem();
            }
            return;
        }

        public updateRunePackData(): void
        {
            var loc1=Cache.instance.pack.runePackCache.getItemsByJudge(this.isCanFeedRune);
            this._tileListRunePack.dataProvider = new DataProvider(loc1);
            if (this._tabBarPack.selectedIndex == 0) 
            {
                this.updateSelectItem();
            }
            return;
        }

        public isCanFeedRune(arg1: ItemData): Boolean
        {
            return ItemsUtil.isRune(arg1) && !(arg1.itemInfo.item.itemLevel == 4) && !(arg1.itemInfo.item.type == ERuneType._ERuneTypeNormalHoly) && !(arg1.itemInfo.item.type == ERuneType._ERuneTypeSkillHoly);
        }

        public setSelectItemData(arg1: ItemData): void
        {
            if (arg1.posType != EPlayerItemPosType._EPlayerItemPosTypeBag) 
            {
                this._tabBarPack.selectedIndex = 0;
                this._tileListRunePack.visible = true;
                this._tileListBackPack.visible = false;
            }
            else 
            {
                this._tabBarPack.selectedIndex = 1;
                this._tileListRunePack.visible = false;
                this._tileListBackPack.visible = true;
            }
            this._selectItemData = arg1;
            this.updateSelectItem();
            return;
        }

        public addGrowthEffect(arg1: int, arg2: Boolean=false): void
        {
            var loc1=new Object /* flash.geom.Point */(Global.stage.mouseX, Global.stage.mouseY);
            var loc2=localToGlobal(new Object /* flash.geom.Point */(161, 142));
            AttriAddEffect.attriAdd(arg1, loc2.x, loc2.y, arg2);
            return;
        }

        public addLevelUpEffect(): void
        {
            this._hintLabel.visible = true;
            this._hintLabel.htmlText = Language.getString(44018);
            var loc1=new GTextFormat();
            loc1.size = 50;
            loc1.bold = true;
            loc1.align = flash.text.TextFormatAlign.CENTER;
            this._hintLabel.textField.setTextFormat(loc1);
            this._hintLabel.y = 100;
            this._hintLabel.alpha = 1;
            TweenLite.to(this._hintLabel, 2, {"y": 40, "alpha": 0, "onComplete": this.levelUpEffectCompl});
            return;
        }

        /* internal  */levelUpEffectCompl(): void
        {
            this._hintLabel.visible = false;
            return;
        }

        public addHintLabel(arg1: string): void
        {
            if (this._hintLabel.parent) 
            {
                this._hintLabel.parent.setChildIndex(this._hintLabel, (this._hintLabel.parent.numChildren - 1));
            }
            return;
        }

        public updateMaterialNum(): void
        {
            this._runeFeedMaterialCell.currentNum = Cache.instance.pack.backPackCache.getItemCountByJudge(this.isRuneFeedGrowthLevel1);
            this._runeFeedMaterialCell2.currentNum = Cache.instance.pack.backPackCache.getItemCountByJudge(this.isRuneFeedGrowthLevel2);
            return;
        }

        /* internal  */isRuneFeedGrowthLevel2(arg1: ItemData): Boolean
        {
            return ItemsUtil.isRuneGrowth(arg1) && arg1.itemInfo.item.itemLevel == 2;
        }

        public showMsg(arg1: string): void
        {
            this._msgRollTips.showMsg(arg1, 1);
            return;
        }

        public /* override */ show(arg1: int=0, arg2: int=0): void
        {
            super.show(arg1, arg2);
            this.updateActiveBtn();
            this.shineActiveBtn();
            return;
        }

        protected onActiveBtnClick(arg1: Object /* flash.events.MouseEvent */): void
        {
            if (!this._selectItemData) 
            {
                MsgManager.showRollTipsMsg(Language.getString(44017));
                return;
            }
            if (Cache.instance.role.money.gold < int(Cache.instance.skill.activeRuneFeed.cost)) 
            {
                MsgManager.showRollTipsMsg(Language.getString(27957));
                return;
            }
            TodayNotTipUtil.toDayNotTip(TodayNoTipsConst.ActiveRuneFeedOneKeyToday, this.goActiveBtnRuneFeed, Language.getStringByParam(26515, Cache.instance.skill.activeRuneFeed.cost, Cache.instance.skill.activeRuneFeed.value, Cache.instance.skill.activeRuneFeed.times), null, Alert.OK | Alert.CANCEL);
            return;
        }

        public shineActiveBtn(): void
        {
            var loc1=Cache.instance.active.isActiveInEffect(EActiveType._EActiveTypeRuneFeedOneKey);
            var loc2=Cache.instance.skill.activeRuneFeed.times - Cache.instance.skill.activeUseTime;
            if (loc1 && loc2 > 0) 
            {
                EffectManager.glowFilterReg(this._activeBtn, [FilterConst.guideTipsFilter], 0.6, 10, 5, 5);
            }
            return;
        }

        public static get instance(): RuneFeedWindow
        {
            if (!RuneFeedWindow._instance) 
            {
                RuneFeedWindow._instance = new RuneFeedWindow();
            }
            return RuneFeedWindow._instance;
        }

        public static hasInstance(): Boolean
        {
            return !(RuneFeedWindow._instance == null);
        }

        /* internal  */onAddToStage(arg1: Object /* flash.events.Event */): void
        {
            this.updateBackPackData();
            this.updateRunePackData();
            this.updateMaterialNum();
            return;
        }

        protected /* override */ createChildren(): void
        {
            super.createChildren();
            ObjCreate.createBg(18, 38, 297, 415, this);
            ObjCreate.createBg(319, 38, 183, 415, this);
            this._bmpFeedBg = new Object /* flash.display.Bitmap */();
            ObjCreate.setObjAttri(this._bmpFeedBg, 155, 58, -1, -1, this);
            this._bmpFeedBg2 = new Object /* flash.display.Bitmap */();
            ObjCreate.setObjAttri(this._bmpFeedBg2, 180, 58, -1, -1, this);
            this._bmpFeedProgressBg = new Object /* flash.display.Bitmap */();
            ObjCreate.setObjAttri(this._bmpFeedProgressBg, 89, 63, -1, -1, this);
            this._bmpFeed = new Object /* flash.display.Bitmap */();
            ObjCreate.setObjAttri(this._bmpFeed, 107, 71, -1, -1, this);
            this._bmpTextGrow = new Object /* flash.display.Bitmap */();
            ObjCreate.setObjAttri(this._bmpTextGrow, 133, 112, -1, -1, this);
            var loc1=GlobalStyle.textFormat1;
            loc1.align = flash.text.TextFormatAlign.CENTER;
            this._tfFeedNum = ObjCreate.createTextField("0/0", 127, 140, 75, 20, this, loc1);
            this._activeBtn = ObjCreate.createGButton(Language.getStringByParam(44076, 0), 125, 198, 86, 24, this, "ButtonRed");
            this._activeBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onActiveBtnClick);
            var loc2=GlobalStyle.textFormatGreen;
            loc2.size = 18;
            loc2.font = FontUtil.xingkaiName;
            this._tfFeedPer = ObjCreate.createTextField("0%", 149, 158, 40, 20, this, loc2);
            this._runeFeedMaterialCell = new RuneFeedMaterialCell(1);
            ObjCreate.setObjAttri(this._runeFeedMaterialCell, 23, 223, -1, -1, this);
            this._runeFeedMaterialCell.addEventListener(SkillRuneEvent.RuneFeedClick, this.onRuneFeedClick);
            this._runeFeedMaterialCell2 = new RuneFeedMaterialCell(2);
            ObjCreate.setObjAttri(this._runeFeedMaterialCell2, 169, 223, -1, -1, this);
            this._runeFeedMaterialCell2.addEventListener(SkillRuneEvent.RuneFeedClick, this.onRuneFeedClick);
            ObjCreate.createTextField(Language.getString(44015), 34, 405, 250, 20, this, GlobalStyle.textFormatGreen);
            this._cbUserBindFirst = ObjCreate.createCheckBox(Language.getString(44016), 30, 420, 150, 28, this);
            this._cbUserBindFirst.selected = true;
            this._cbAutoByMaterial = ObjCreate.createCheckBox(Language.getString(44072), 165, 420, 120, 28, this);
            this._btnBuyRune = ObjCreate.createGButton(Language.getString(44058), 433, 103, 70, 20, this, "LinkButton");
            this._btnBuyRune.toolTipData = Language.getString(44074);
            this._btnBuyRune.addEventListener(flash.events.MouseEvent.CLICK, this.onClickBuyRuneHandler);
            ObjCreate.createBg(324, 43, 174, 55, this, "DisabledBg");
            ObjCreate.createBitmap(ImagesConst.PackItemBg, 334, 53, this);
            this._selectItem = new BaseItem();
            ObjCreate.setObjAttri(this._selectItem, 337, 56, 32, 32, this);
            this._selectItemName = ObjCreate.createTextField("", 377, 52, 120, 20, this);
            this._selectItemLevel = ObjCreate.createTextField("", 377, 72, 120, 20, this);
            this._btnPreview = ObjCreate.createGButton(Language.getString(44055), 445, 69, 50, 22, this);
            this._btnPreview.addEventListener(flash.events.MouseEvent.CLICK, this.onPreviewClick);
            this._btnPreview.visible = false;
            ObjCreate.createBg(323, 150, 175, 300, this);
            this._tabBarPack = ObjCreate.createGTabBar(328, 129, this._tabBarData, 52, 22, this, this.onTabBarPackChange);
            this._tabBarPack.horizontalGap = 1;
            this._tileListRunePack = ObjCreate.createTileList(327, 158, 168, 290, this);
            this._tileListRunePack.columnWidth = 150;
            this._tileListRunePack.rowHeight = 60;
            this._tileListRunePack.verticalGap = 0;
            this._tileListRunePack.setStyle("cellRenderer", RuneCellRenderer);
            this._tileListRunePack.addEventListener(flash.events.Event.CHANGE, this.onRunePackSelectChange);
            this._tileListBackPack = ObjCreate.createTileList(327, 158, 168, 290, this);
            this._tileListBackPack.columnWidth = 150;
            this._tileListBackPack.rowHeight = 60;
            this._tileListBackPack.verticalGap = 0;
            this._tileListBackPack.setStyle("cellRenderer", RuneCellRenderer);
            this._tileListBackPack.addEventListener(flash.events.Event.CHANGE, this.onBackPackSelectChange);
            this._tileListBackPack.visible = false;
            this._hintLabel = ObjCreate.createLabel("", 30, 100, 260, 100, flash.text.TextFormatAlign.CENTER, this);
            this._hintLabel.mouseEnabled = false;
            this._hintLabel.mouseChildren = false;
            this._hintLabel.visible = false;
            this._hintLabel.textField.filters = [FilterConst.taskShowTargetFilter];
            LoaderHelp.addResCallBack(ResFileConst.runeFeed, this.onResCompl);
            this._msgRollTips = new PetMingMsgRollTips();
            this._msgRollTips.x = 100;
            this._msgRollTips.y = 220;
            this.addChild(this._msgRollTips);
            return;
        }

        public updateActiveBtn(): void
        {
            var loc1=Cache.instance.active.isActiveInEffect(EActiveType._EActiveTypeRuneFeedOneKey);
            var loc2=Cache.instance.skill.activeRuneFeed.times - Cache.instance.skill.activeUseTime;
            if (loc1) 
            {
                this._activeBtn.visible = true;
                this._activeBtn.label = Language.getStringByParam(44076, loc2);
                this._activeBtn.toolTipData = Language.getStringByParam(44077, Cache.instance.skill.activeRuneFeed.cost, Cache.instance.skill.activeRuneFeed.value);
                if (loc2 > 0) 
                {
                    this._activeBtn.enabled = true;
                }
                else 
                {
                    this._activeBtn.enabled = false;
                }
            }
            else 
            {
                this._activeBtn.visible = false;
            }
            return;
        }

        /* internal  */isRuneFeedGrowthLevel1(arg1: ItemData): Boolean
        {
            return ItemsUtil.isRuneGrowth(arg1) && arg1.itemInfo.item.itemLevel == 1;
        }

        /* internal  */goActiveBtnRuneFeed(): void
        {
            var loc1=EPlayerItemPosType._EPlayerItemPosTypeBag;
            if (this._tabBarPack.selectedIndex == 0) 
            {
                loc1 = EPlayerItemPosType._EPlayerItemPosTypeRune;
            }
            var loc2=new RuneFeedData();
            loc2.posType = loc1;
            loc2.uid = this._selectItemData.uid;
            loc2.activeOneKey = true;
            Dispatcher.dispatchEvent(new DataEvent(EventName.RuneFeed, loc2));
            return;
        }

        /* internal  */onResCompl(): void
        {
            this._bmpFeedBg.bitmapData = GlobalClass.getBitmapData(ImagesConst.RuneFeedBg);
            this._bmpFeedBg.scaleX = -1;
            this._bmpFeedBg2.bitmapData = GlobalClass.getBitmapData(ImagesConst.RuneFeedBg);
            this._bmpFeedProgressBg.bitmapData = GlobalClass.getBitmapData(ImagesConst.RuneProgressBg);
            this._bmpTextGrow.bitmapData = GlobalClass.getBitmapData(ImagesConst.RuneFeedGrow);
            this._bmpdFeedBase = GlobalClass.getBitmapData(ImagesConst.RuneProgress);
            this._bmpdFeed = this._bmpdFeedBase.clone();
            this.updateSelectItem();
            return;
        }

        /* internal  */onRuneFeedClick(arg1: SkillRuneEvent): void
        {
            if (!this._selectItemData) 
            {
                MsgManager.showRollTipsMsg(Language.getString(44017));
                return;
            }
            var loc1=arg1.currentTarget as RuneFeedMaterialCell;
            var loc2=EPlayerItemPosType._EPlayerItemPosTypeBag;
            if (this._tabBarPack.selectedIndex == 0) 
            {
                loc2 = EPlayerItemPosType._EPlayerItemPosTypeRune;
            }
            var loc3;
            (loc3 = new RuneFeedData()).autoBuy = this._cbAutoByMaterial.selected;
            loc3.materalNum = loc1.materalNum;
            loc3.materialLevel = loc1.materialLevel;
            loc3.posType = loc2;
            loc3.uid = this._selectItemData.uid;
            loc3.useBind = this._cbUserBindFirst.selected;
            loc3.activeOneKey = false;
            Dispatcher.dispatchEvent(new DataEvent(EventName.RuneFeed, loc3));
            return;
        }

        /* internal */ /* var */_bmpFeedBg: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_bmpFeedBg2: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_bmpFeedProgressBg: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_bmpFeed: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_bmpTextGrow: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_tfFeedNum: Object /* flash.text.TextField */;

        /* internal */ /* var */_runeFeedMaterialCell: RuneFeedMaterialCell;

        /* internal */ /* var */_runeFeedMaterialCell2: RuneFeedMaterialCell;

        /* internal */ /* var */_cbUserBindFirst: GCheckBox;

        /* internal */ /* var */_cbAutoByMaterial: GCheckBox;

        /* internal */ /* var */_selectItem: BaseItem;

        /* internal */ /* var */_selectItemName: Object /* flash.text.TextField */;

        /* internal */ /* var */_selectItemLevel: Object /* flash.text.TextField */;

        /* internal */ /* var */_btnPreview: GButton;

        /* internal */ /* var */_btnBuyRune: GButton;

        /* internal */ /* var */_runePreviewWindow: RunePreviewWindow;

        /* internal */ /* var */_tabBarPack: GTabBar;

        /* internal */ /* var */_tileListRunePack: GTileList;

        /* internal */ /* var */_tileListBackPack: GTileList;

        /* internal */ /* var */_hintLabel: GLabel;

        /* internal */ /* var */_tabBarData: Array<any>;

        /* internal */ /* var */_bmpdFeedBase: Object /* flash.display.BitmapData */;

        /* internal */ /* var */_selectItemData: ItemData;

        /* internal */ /* var */_msgRollTips: PetMingMsgRollTips;

        /* internal */ /* var */_activeBtn: GButton;

        /* internal */ static /* var */_instance: RuneFeedWindow;

        /* internal */ /* var */_bmpdFeed: Object /* flash.display.BitmapData */;

        /* internal */ /* var */_tfFeedPer: Object /* flash.text.TextField */;
    }
